home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
r174chtr.zip
/
RSB4CHTR.MRG
< prev
next >
Wrap
Text File
|
1992-07-27
|
13KB
|
287 lines
* ------------[ BLED merge (c) Ken Goosens ]-------------
* Merge this against D:\1740704\RBBSSUB4.BAS to produce D:\SOURCE\RBBSSUB4.BAS
* D:\1740704\RBBSSUB4.BAS: Date 7-26-1992 Size 120885 bytes
* ------------[ Created 07-27-1992 00:13:01 ]------------
* REPLACING old line(s) by new
57000 ' $SUBTITLE: 'Toggle - Toggle User Preferences'
' $PAGE
'
' NAME -- Toggle
'
' INPUTS -- ToggleOption Option to toggle or view
' according to the following:
' ToggleOption PREFERENCE
' Toggle VIEW
' 1 -1 Autodownload
' 2 -2 Bulletin review on logon
' 3 -3 Case change
' 4 -4 File review on logon
' 5 -5 Highlight
' 6 -6 Line feeds
' 7 -7 Nulls
' 8 -8 TurboKey
' 9 -9 Expert
' 10 -10 Bell
* ------[ first line different ]------
' 11 -11 Chat Availability
'
' OUTPUTS -- ZSubParm passed from TPut
'
' PURPOSE -- Sets or views any single user preference value
'
SUB Toggle (ToggleOption) STATIC
ZSubParm = 0
IF ToggleOption < 0 THEN _
GOTO 57005
ON ToggleOption GOSUB _
57010, _ 'Autodownload
57120, _ 'Bulletin review on logon
57260, _ 'Case change
57150, _ 'File review on logon
57040, _ 'Highlight
57100, _ 'Line feeds
57210, _ 'Nulls
57230, _ 'TurboKey
57190, _ 'Expert
57170, _ 'Bell 'CHT
57300 'Internode chat availability 'CHT
EXIT SUB
* REPLACING old line(s) by new
57005 CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue)
ON -ToggleOption GOSUB _
57030, _ 'Autodownload
57130, _ 'Bulletin review on logon
57270, _ 'Case change
57160, _ 'File review on logon
57050, _ 'Highlight
57110, _ 'Line feeds
57220, _ 'Nulls
57240, _ 'TurboKey
57200, _ 'Expert
* ------[ first line different ]------
57180, _ 'Bell 'CHT
57310 'Internode chat availability 'CHT
EXIT SUB
* REPLACING old line(s) by new
57280 ZUseTPut = (ZUpperCase OR ZXOnXOff)
RETURN
* ------[ first line different ]------
* INSERTING new line(s)
57300 ZAvailableForChat = NOT ZAvailableForChat
57310 ZOutTxt$ = "Inter-Node Chat: " + MID$("YESNO",1 -3 * ZAvailableForChat, 3) ' TH101101
CALL SkipLine(1) ' CHT101201
CALL QuickTPut1 (ZOutTxt$)
CALL SkipLine(1) ' CHT101201
END SUB
'
* REPLACING old line(s) by new
58200 ' $SUBTITLE: 'FMS - subroutine to search the upload management system'
' $PAGE
'
' NAME -- FMS
'
' INPUTS -- PARAMETER MEANING
' DirToSearch$ RBBS-PC "DIR" CATEGORY TO LOOK
' FOR
' SearchString$ STRING TO SEARCH FOR
' SearchDate$ DATE TO SEARCH FOR
' ZCategoryName$()
' ZCategoryCode$()
' ZCategoryDesc$()
' CatFound
' ZNumCategories
'
' OUTPUTS -- ProcessedInFMS
' DnldFlag
'
' PURPOSE -- To search the file management system and display the
' files being searched for as well as the catetory descriptions
'
SUB FMS (DirToSearch$,SearchString$,SearchDate$, _
* ------[ first line different ]------
ProcessedInFMS,ZCategoryName$(1),ZCategoryCode$(1), _
ZCategoryDesc$(1),DnldFlag,CatFound,AbortIndex) STATIC
DnldFlag = 0
CALL SearchArray (DirToSearch$,ZCategoryName$(),ZNumCategories,CatFound)
ProcessedInFMS = ProcessedInFMS OR (CatFound > 0)
If ZEmphasizeOn$ <> "" THEN _ 'Bama Connx 02/24/90
Zfg5$ = zESCAPE$ + "[1;36;40m" : _ 'Bama Connx 02/24/90
zfg6$ = zESCAPE$ + "[1;37;44m" : _ 'Bama Connx 02/24/90
zfg7$ = zESCAPE$ + "[1;33;40m" : _ 'Bama Connx 02/24/90
ELSE _ 'Bama Connx 02/24/90
GOSUB 58201 ' TH101801
IF ProcessedInFMS THEN _
ZSubParm = 5 : _
GOSUB 58202 : _
CALL quicktput("",1) 'Bama Connx 02/24/90
CALL quicktput(Zfg5$+"╔═"+zfg6$+" "+DIRTOSEARCH$+" "+Zfg5$+"═══",0) : _'Bama Connx 02/24/90
CALL quicktput(zfg6$ +" "+ ZCategoryDesc$(Catfound) +" " + Zfg5$ + "════" + _'Bama Connx 02/24/90
zfg7$+" " + zColorReset$+ HDR$,1) : _ 'Bama Connx 02/24/90
CALL quicktput(Zfg5$+ "║",1) : _ 'Bama Connx 02/24/90
CALL quicktput("╚═"+zfg6$+"File Name"+Zfg5$+"══════" + zfg6$ + "Size" + _ 'Bama Connx 02/24/90
Zfg5$+"════",0) : _ 'Bama Connx 02/24/90
CALL quicktput(zfg6$+"Date"+Zfg5$+"════"+zfg6$ + "Description"+ _ 'Bama Connx 02/24/90
Zfg5$+"════════════════════════════"+zfg7$+" "+ZColorReset$,1) : _ 'Bama Connx 02/24/90
Cat$ = ZCategoryCode$(CatFound) : _
CALL DispUpDir (Cat$,SearchString$,SearchDate$,DnldFlag,AbortIndex)
EXIT SUB
* INSERTING new line(s)
58201 DnldFlag = 0 ' TH101801
If ZEmphasizeOff$ <> "" THEN _ ' TH101801
IF ProcessedInFMS THEN _ ' TH101801
ZSubParm = 5 : _ ' TH101801
GOSUB 58202 : _ ' TH101801
CALL QuickTPut("",1) ' TH101801
CALL SkipLine(1) ' TH101801
CALL QuickTPut("[" +ZCategoryDesc$(CatFound)+ "]",1) : _ ' TH102502
CALL QuickTPut("[ File Name " + _ ' TH101801
"-----" + "Size" + _ ' ' TH101801
"----",0) : _ ' TH101801
CALL QuickTPut("Date"+"----" + "Description" + _ ' TH101801
"------------------------------"+"] " + _ ' TH102402 ' TH101801
ZColorReset$,1) : _ ' TH101801
Cat$ = ZCategoryCode$(CatFound) : _ ' TH101801
CALL DispUpDir (Cat$,SearchString$,SearchDate$,DnldFlag,AbortIndex) ' TH101801
EXIT SUB ' TH101801
* REPLACING old line(s) by new
58202 ZOutTxt$ = SearchDate$
IF LEN(ZOutTxt$) > 0 THEN _
* ------[ first line different ]------
ZOutTxt$ = MID$(ZOutTxt$,3) + LEFT$(ZOutTxt$,2)
HDR$ = SearchString$ + _ 'Bama Connx 02/24/90
ZOutTxt$ 'Bama Connx 02/24/90
IF HDR$ <> "" THEN _ 'Bama Connx 02/24/90
HDR$ = Zfg4$+"Scanning for "+ Zfg2$+HDR$ 'Bama Connx 02/24/90
RETURN
END SUB
* REPLACING old line(s) by new
59851 IF NOT ZOK THEN _
GOTO 59856 _
ELSE IF EOF(2) THEN _
IF LogicalEOF$ = "" OR SkipParms = 0 THEN _
GOTO 59856 _
ELSE CALL FindIt (ZConfMailList$) : _
SkipParms = 0 : _
GOTO 59851
CALL ReadAny
ZActiveUserFile$ = ZOutTxt$
CALL ReadAny
IF ZErrCode > 0 THEN _
GOTO 59856
SkipParms = SkipParms + 2
ZActiveMessageFile$ = ZOutTxt$
CALL FindFile (ZActiveUserFile$,ZOK)
IF NOT ZOK THEN _
GOTO 59856
CALL OpenUser (HighestUserRecord)
FIELD 5, 128 AS ZUserRecord$
CALL FindFile (ZActiveMessageFile$,ZOK)
IF NOT ZOK THEN _
GOTO 59856
CALL FindUser (ZOrigUserName$,"",ZStartHash,ZLenHash,_
0,0,HighestUserRecord,_
Found,HoldUserFileIndex,ZWasSL)
IF NOT Found THEN _
GOTO 59853
CALL OpenMsg
FIELD 1, 128 AS ZMsgRec$
GET 1,1
AnyMail = ZTrue
WasX = CVI(MID$(ZUserRecord$,57,2))
* ------[ first line different ]------
WasX = (WasX AND 512) > 0
CALL BreakFileName (ZActiveUserFile$,WasX$,CurPre$,CurExt$,ZFalse)
InCur = (CurPre$ = NowInPre$ AND CurExt$ = NowInExt$)
* REPLACING old line(s) by new
59852 IF InCur THEN _
FileWait = ZFileWaiting : _
WasX = ZMailWaiting : _
ZWasA = ZLastMsgRead _
ELSE ZWasA = CVI(MID$(ZUserRecord$,51,2))
ZWasB = VAL(LEFT$(ZMsgRec$,8))
WasZ = (ZWasB - ZWasA)
IF WasZ < 0 THEN _
ZWasA = 0 : _
WasZ = ZWasB _
ELSE IF WasZ = 0 THEN _
WasX = ZFalse
ZWasSL = LEN(CurPre$)
IF CurPre$ = "USERS" AND CurExt$ = "" THEN _
Conf$ = "MAIN" _
ELSE Conf$ = LEFT$(CurPre$,ZWasSL-1)
ZOutTxt$ = MID$(STR$((ZWasB > ZWasA) * WasZ),2)
Temp = LEN(ZOutTxt$)
ZOutTxt$ = SPACE$(-(Temp<4) * (4-Temp)) + ZOutTxt$
IF (WasZ > 0 AND LinkNew) OR (WasX AND LinkPers) THEN _
IF (NOT InCur) THEN _
CALL AddLink (Conf$)
Temp = (INSTR(ZCarriageReturn$ + ZLinkedConf$,ZCarriageReturn$ + Conf$ + ZCarriageReturn$) > 0)
ZWasY$ = MID$(" *",1-Temp,1) + Conf$ + SPACE$(-(ZWasSL<8) * (8-ZWasSL))
IF WasX THEN _
WasX$ = ZEmphasizeOn$ + "Some to you" + ZEmphasizeOff$ _
ELSE WasX$ = " "
* ------[ first line different ]------
Temp$ = "" 'CHT
ZOutTxt$ = ZWasY$ + ": " + ZOutTxt$ + " new message(s) " + _
WasX$ + Temp$
ZSubParm = 5
CALL TPut
ZJumpSupported = ZFalse
IF SkipJoinUnjoin THEN _
CALL AskMore ("",ZTrue,ZTrue,WasX,ZTrue) : _
GOTO 59853
ZTurboKey = -ZTurboKeyUser
CALL AskMore (",J)oin,U)njoin,L)ink,D)elink",ZTrue,ZFalse,WasX,ZFalse)
IF ZNo THEN _
GOTO 59856
WasX$ = LEFT$(ZUserIn$(1),1)
CALL AllCaps (WasX$)
IF WasX$ = "J" THEN _
ZLastIndex = ZWasQ : _
ZHomeConf$ = Conf$ : _
GOTO 59856
IF WasX$ = "D" THEN _
CALL DeLink (Conf$) : _
GOTO 59852
IF WasX$ = "L" THEN _
CALL AddLink (Conf$) : _
GOTO 59852
IF WasX$ = "U" THEN _
IF InCur OR (OrigPre$ = CurPre$ AND OrigExt$ = CurExt$) THEN _
CALL QuickTPut1 ("Can't omit yourself from the board or conference you're in") _
ELSE LSET ZUserRecord$ = CHR$(0) + "deleted user" : _
ZUserFileIndex = HoldUserFileIndex : _
ZSubParm = 6 : _
CALL FileLock : _
PUT 5, HoldUserFileIndex : _
ZSubParm = 8 : _
CALL FileLock : _
CALL QuickTPut1 ("Omitted you from " + Conf$)
* REPLACING old line(s) by new
64636 IF ZAnsIndex < ZLastIndex THEN _
GOTO 64638
ZOutTxt$ = "A)utodwnld B)ullet C)ase F)ile H)ilite"
CALL TopPrompt
* ------[ first line different ]------
ZOutTxt$ = "L)ine feeds N)ulls T)urboKey X)pert !)bell I)nt Chat" 'CHT
CALL ColorPrompt (ZOutTxt$)
* REPLACING old line(s) by new
64638 ZStackC = ZTrue
ZTurboKey = -ZTurboKeyUser
CALL PopCmdStack
IF ZWasQ=0 OR ZSubParm < 0 THEN _
EXIT SUB
ZWasZ$ = ZUserIn$(ZAnsIndex)
CALL AllCaps (ZWasZ$)
* ------[ first line different ]------
ZFF = INSTR("ABCFHLNTX!I",ZWasZ$) 'CHT
IF ZFF < 1 THEN _
GOTO 64636
CALL Toggle (ZFF)
GOTO 64636
END SUB
SUB TopPrompt STATIC
CALL ColorPrompt (ZOutTxt$)
CALL QuickTPut1 (ZOutTxt$)
END SUB